<?php
return array(
	//'配置项'=>'配置值'
	'MULTI_MODULE' => false,
	'DEFAULT_MODULE' => 'Home',
	'URL_HTML_SUFFIX'=>'.php',
		
	'URL_PARAMS_BIND_TYPE'  =>  1,
		
	'SHOW_ERROR_MSG'		=>  true,

    // 开启日志记录
    'LOG_RECORD' => true,
    // 只记录EMERG ALERT CRIT ERR 错误
    'LOG_LEVEL'  =>'EMERG,ALERT,CRIT,ERR',

// 	'TMPL_EXCEPTION_FILE'	=> 'Public/tpl/api_exception.tpl',
		
	//region  **********  测试环境    *************//
    //默认数据库
    'DB_TYPE'   => 'mysql', // 数据库类型
    'DB_HOST'   => 'sql6.freemysqlhosting.net', // 服务器地址
    'DB_NAME'   => 'sql6150640', // 数据库名
    'DB_USER'   => 'sql6150640', // 用户名
    'DB_PWD'    => '9ZgNLj7qEk', // 密码
    'DB_PORT'   => 3306, // 端口
    'DB_PREFIX' => '', // 数据库表前缀
	
	//whaley_system数据库
	'DB_whaley_system'	=> 'mysql://sql6150640:9ZgNLj7qEk@sql6.freemysqlhosting.net:3306/sql6150640',
	'DB_whaley_product'	=> 'mysql://sql6150640:9ZgNLj7qEk@sql6.freemysqlhosting.net:3306/sql6150640',
	'DB_whaley_wms'	    => 'mysql://sql6150640:9ZgNLj7qEk@sql6.freemysqlhosting.net:3306/sql6150640',
	//endregion **********  测试环境    *************//
		
	//region **********  公网环境    *************//
	//默认数据库whaley_trade
// 	'DB_TYPE'   => 'mysql', // 数据库类型
// 	'DB_HOST'   => '123.59.131.144', // 服务器地址
// 	'DB_NAME'   => 'whaley_trade', // 数据库名
// 	'DB_USER'   => 'order', // 用户名
// 	'DB_PWD'    => '489#$%Das', // 密码
// 	'DB_PORT'   => 33306, // 端口
// 	'DB_PREFIX' => '', // 数据库表前缀
	
// 	//whaley_system数据库
// 	'DB_whaley_system'	=> 'mysql://order:489#$%Das@123.59.131.144:33306/whaley_system',
// 	'DB_whaley_product'	=> 'mysql://order:489#$%Das@123.59.131.144:33306/whaley_product',
// 	'DB_whaley_wms'	=> 'mysql://order:489#$%Das@123.59.131.144:33306/whaley_wms',
	//endregion **********  公网环境    *************//
		
		
	'SystemConfig'	=> array(
				'encrypt_key'			=> 'rlQu78NZpd2OwhQG',
				'current_domain'		=> 'order',
		),
	'AdminConfig'	=> array(
			//登陆的cookie参数设置
			'login_cookie_expire'	=> '43200',
			'login_cookie_domain'	=> '.whaley.cn',
			
			'login_page'			=>	'http://local.admin.whaley.cn/admin/login',
			'jump_page'             =>  'http://local.admin.whaley.cn/admin/jump',
			'error_page'            =>  'http://local.admin.whaley.cn/admin/errorauth',
			'error_info_page'       =>  'http://local.admin.whaley.cn/admin/errorPage',
			'info_page'           	=>  'http://local.admin.whaley.cn/admin/infoPage',
			'system_domain'         =>  'order',
	),
	'OrderConfig'	=> array(
			'orderinfo_page'			=>	'http://local.order.whaley.cn/Order/orderinfo',
		    'invoicename_page'			=>	'http://local.order.whaley.cn/Invoice/invoicename',
		    'payee_register_no'         =>   '12345',
		    'dkh_success_page'          =>'http://local.order.whaley.cn/Dealer/dealerOrderSuccess',
			'vrdkh_success_page'          =>'http://local.order.whaley.cn/VRDealer/dealerOrderSuccess',
			'stdkh_success_page'          =>'http://local.order.whaley.cn/STDealer/dealerOrderSuccess'
	),'Api' =>array(
			'MailApi' =>'http://172.16.18.104:8080/whaley-bms/mail/sendMail.do',
			'DealerShippingUrl'=>'http://172.16.18.104:8080/whaley-job/tms/importOrder'
	),'AuthBussinessGroupConfig' =>array(
			'group_id' =>'57a156dccbffc',
	),
	'AuthVRBussinessGroupConfig' =>array(
        'group_id' =>'57cf846ccc0be',
    ),
	'AuthSTBussinessGroupConfig' =>array(
        'group_id' =>'57d27e3a6ac7b',
    ),
    'EmailConfig' =>array(
        'SaleReceiverList'=> 'zhang.yunpeng@whaley.cn;ding.yulei@whaley.cn',
        'PaymentVoucherUploadReceiverList'=> 'zhang.yunpeng@whaley.cn',
        'AccountReceiverList' => 'yang.xiaoli@whaley.cn',
        'LogisticsReceiverList' => 'zhang.yunpeng@whaley.cn;ding.yulei@whaley.cn',
        'SaleReceiverMailSubject'=>'订单下单，等待销售部门审核！',
        'PaymentVoucherUploadMailSubject'=>'支付凭证上传成功，等待销售部门审核！',
        'AccountReceiverMailSubject'=>'销售管理部审批完成，等待财务审核！',
        'LogisticsReceiverMailSubject'=>'财务审核完成，等待物流发货',

    ),
    'VREmailConfig' =>array(
        'SaleReceiverList'=> 'zhu.changwen@whaley.cn',
        'PaymentVoucherUploadReceiverList'=> 'zhu.changwen@whaley.cn',
        'AccountReceiverList' => 'xie.man@whaley.cn',
        'LogisticsReceiverList' => 'li.xiaoting@whaley.cn',
        'SaleReceiverMailSubject'=>'订单下单，等待销售部门审核！',
        'PaymentVoucherUploadMailSubject'=>'支付凭证上传成功，等待销售部门审核！',
        'AccountReceiverMailSubject'=>'销售管理部审批完成，等待财务审核！',
        'LogisticsReceiverMailSubject'=>'财务审核完成，等待物流发货',

    ),
	'PREFIX_PATH' => array(
			'OTMS' => 'http://file.whaley.cn/otms/'
	)
);